d36dc73a7fecc330d354b2e747f72b98928cd7e5,plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java,GithubApiUtil,createGist,#GithubConnection#List#String#boolean#,382

Before Change


                                      boolean isPrivate) throws IOException {
    try {
      String request = gson.toJson(new GithubGistRequest(contents, description, !isPrivate));
      return createDataFromRaw(fromJson(connection.postRequest("/gists", request, ACCEPT_V3_JSON), GithubGistRaw.class), GithubGist.class);
    }
    catch (GithubConfusingException e) {
      e.setDetails("Can't create gist");

After Change


                                      boolean isPrivate) throws IOException {
    try {
      String request = gson.toJson(new GithubGistRequest(contents, description, !isPrivate));
      return fromJson(connection.postRequest("/gists", request, ACCEPT_V3_JSON), GithubGist.class);
    }
    catch (GithubConfusingException e) {
      e.setDetails("Can't create gist");